package com.yan.design.two.behavior.s1;

/**
 * 1. 模板模式
 *    测试类
 * @author shengren.yan
 * @create 2022-08-06
 */
public class testRun {
    public static void main(String[] args) {

        System.out.println("--- A牛奶  --");
        MilkTemplate aMilk = new AMilk();
        aMilk.make();

        System.out.println("--- B牛奶  --");
        MilkTemplate bMilk = new BMilk();
        bMilk.make();

    }
}
